<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>果味鲜 - 新鲜水果直供平台</title>
    <link rel="stylesheet" href="css/style.css">
    <style>
        /* 图片相关样式 */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Logo图片样式 */
.logo img {
    height: 50px;
    width: auto;
    transition: transform 0.3s;
}

.logo img:hover {
    transform: scale(1.05);
}

/* Banner图片样式 */
.banner img {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

/* 商品图片样式 */
.product-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 15px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.product-item img:hover {
    transform: scale(1.03);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

/* 购物车图标样式 */
.cart img {
    width: 24px;
    height: 24px;
    margin-right: 5px;
    vertical-align: middle;
}

        /* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Microsoft YaHei', sans-serif;
}

body {
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

.container {
    width: 1200px;
    margin: 0 auto;
}

/* 头部样式 */
.header {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 999;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 50px;
}

.nav ul {
    display: flex;
    list-style: none;
}

.nav ul li {
    margin: 0 15px;
}

.nav ul li a {
    text-decoration: none;
    color: #333;
    font-weight: bold;
    transition: color 0.3s;
}

.nav ul li a:hover {
    color: #ff6b81;
}

.search-cart {
    display: flex;
    align-items: center;
}

.search input {
    padding: 8px 15px;
    border: 1px solid #ddd;
    border-radius: 4px 0 0 4px;
    outline: none;
}

.search button {
    padding: 8px 15px;
    background-color: #ff6b81;
    color: white;
    border: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
}

.cart {
    margin-left: 20px;
    display: flex;
    align-items: center;
    cursor: pointer;
}

.cart img {
    width: 24px;
    height: 24px;
    margin-right: 5px;
}

/* 轮播图样式 */
.banner {
    margin-top: 20px;
}

.banner img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* 分类样式 */
.category {
    margin: 40px 0;
}

.category h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #ff6b81;
    font-size: 28px;
}

.category-list {
    display: flex;
    justify-content: space-between;
}

.category-item {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    width: 23%;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s;
}

.category-item:hover {
    transform: translateY(-5px);
}

.category-item h3 {
    color: #ff6b81;
    margin-bottom: 10px;
}

/* 热销商品样式 */
.hot-products {
    margin: 40px 0;
}

.hot-products h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #ff6b81;
    font-size: 28px;
}

.product-list {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.product-item {
    background-color: white;
    width: 31%;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s;
}

.product-item:hover {
    transform: translateY(-5px);
}

.product-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 15px;
}

.product-item h3 {
    margin-bottom: 10px;
    color: #333;
}

.price {
    color: #ff6b81;
    font-weight: bold;
    margin: 10px 0;
}

.product-item button {
    width: 100%;
    padding: 8px 0;
    background-color: #ff6b81;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.product-item button:hover {
    background-color: #ff4757;
}

/* 底部样式 */
.footer {
    background-color: #333;
    color: #fff;
    padding: 40px 0 20px;
}

.footer-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
}

.footer-column {
    width: 30%;
}

.footer-column h4 {
    margin-bottom: 20px;
    font-size: 18px;
}

.footer-column p {
    margin-bottom: 10px;
    color: #ccc;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 8px;
}

.footer-column ul li a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-column ul li a:hover {
    color: #ff6b81;
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #444;
    color: #999;
    font-size: 14px;
}
        .student-info {
            position: fixed;
            bottom: 10px;
            right: 10px;
            background-color: rgba(255,255,255,0.8);
            padding: 5px 10px;
            border-radius: 5px;
            font-size: 12px;
            z-index: 1000;
        }
    </style>
</head>
<body>
    <!-- 学号姓名信息 -->
    <div class="student-info">学号：23215220322 姓名：唐铭阳</div>

    <!-- 顶部导航栏 -->
    <header class="header">
        <div class="container">
            <div class="logo">
                <img src="OIP-C (2).jpg" alt="果味鲜">
            </div>
            <nav class="nav">
                <ul>
                    <li><a href="#">首页</a></li>
                    <li><a href="#">新鲜水果</a></li>
                    <li><a href="#">进口水果</a></li>
                    <li><a href="#">水果礼盒</a></li>
                    <li><a href="#">关于我们</a></li>
                </ul>
            </nav>
            <div class="search-cart">
                <div class="search">    
                               <input type="text" placeholder="搜索水果...">
                    <button>搜索</button>
                </div>
                <div class="cart">
                    <img src="R-C.png" alt="购物车">
                    <span>购物车</span>
                </div>
            </div>
        </div>
    </header>

    <!-- 轮播图 -->
    <section class="banner">
        <img src="FjdVWGVf9K_small.jpg" alt="果味鲜新鲜水果">
    </section>

    <!-- 商品分类 -->
    <section class="category">
        <div class="container">
            <h2>水果分类</h2>
            <div class="category-list">
                <div class="category-item">
                    <h3>热带水果</h3>
                    <p>芒果、菠萝、椰子等</p>
                </div>
                <div class="category-item">
                    <h3>浆果类</h3>
                    <p>草莓、蓝莓、树莓等</p>
                </div>
                <div class="category-item">
                    <h3>柑橘类</h3>
                    <p>橙子、柚子、柠檬等</p>
                </div>
                <div class="category-item">
                    <h3>核果类</h3>
                    <p>桃子、李子、樱桃等</p>
                </div>
            </div>
        </div>
    </section>

    <!-- 热销商品 -->
    <section class="hot-products">
        <div class="container">
            <h2>热销水果</h2>
            <div class="product-list">
                <div class="product-item">
                    <img src="OIP-C.jpg" alt="新西兰奇异果">
                    <h3>新西兰奇异果</h3>
                    <p class="price">¥29.9/盒</p>
                    <button>加入购物车</button>
                </div>
                <div class="product-item">
                    <img src="O1CN01sxmj6c1dBjU3eg29u_!!0-item_pic.avif" alt="泰国榴莲">
                    <h3>泰国金枕榴莲</h3>
                    <p class="price">¥129.9/个</p>
                    <button>加入购物车</button>
                </div>
                <div class="product-item">
                    <img src="OIP-C (1).jpg" alt="智利车厘子">
                    <h3>智利车厘子</h3>
                    <p class="price">¥89.9/斤</p>
                    <button>加入购物车</button>
                </div>
            </div>
        </div>
    </section>

    <!-- 底部信息 -->
    <footer class="footer">
        <div class="container">
            <div class="footer-info">
                <div class="footer-column">
                    <h4>关于果味鲜</h4>
                    <p>果味鲜是一家专注于新鲜水果直供的电商平台，致力于为消费者提供最优质的水果。</p>
                </div>
                <div class="footer-column">
                    <h4>联系我们</h4>
                    <p>电话：400-123-4567</p>
                    <p>邮箱：service@guoweixian.com</p>
                </div>
                <div class="footer-column">
                    <h4>快速链接</h4>
                    <ul>
                        <li><a href="#">首页</a></li>
                        <li><a href="#">购物指南</a></li>
                        <li><a href="#">配送方式</a></li>
                    </ul>
                </div>
            </div>
            <div class="copyright">
                <p>© 2023 果味鲜 All Rights Reserved. 学号：23215220322 姓名：唐铭阳</p>
            </div>
        </div>
    </footer>
</body>
</html>